package org.redr.canvas;

import java.util.ArrayList;
import java.util.List;

public class SignalSocket {
	protected List<String> connectionTypes = new ArrayList<String>();
	protected RRW widget;
	private String sid;
	private String name;
	private boolean _isConnected;
	
	protected RRW widget(){ return this.widget; }
	
	public SignalSocket(RRW widget, String signalId, String n){
		this.widget = widget;
		this.sid = signalId;
		this.name = n;
	}
	
	public List<String> connectionTypes(){ return connectionTypes; }
	
	public boolean isConnected(){ return _isConnected;	}
	
	public String getWidgetId() { return this.widget().widgetID(); }
	
	public String getSignalId()
	{
		return sid;
	}
	
	public String getSignalName()
	{
		return name;
	}
}
